﻿<?php
include "includes/db.php";
$mysqli = new MossCMS();

if ($_SESSION[$prefix.'_username'] == ""){  $_SESSION[$prefix.'_groups'] = array("Un-Authenticated");}

//print_r($_SESSION[$prefix.'_groups'] );
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML lang=en xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Moss Inc. @ Work</TITLE>
<META content="text/html; charset=UTF-8" http-equiv=Content-Type><LINK 
rel=stylesheet type=text/css href="eiu_files/eiu_mainpages_new.css" 
media=screen><LINK rel=stylesheet type=text/css href="eiu_files/eiucss2.css" 
media=screen><LINK rel=stylesheet type=text/css href="eiu_files/dynamic.css" 
media=screen><LINK rel=stylesheet type=text/css href="eiu_files/print.css" 
media=print><LINK rel=stylesheet type=text/css href="eiu_files/mobile.css" 
media=handheld>
<link href="includes/local.css" rel="stylesheet" type="text/css" media="screen" />

<DIV id=header>
<DIV class="wrapper headerbg">
<DIV id=leftheader>
<H1 class=invisible>Moss @ Work</H1><A accessKey=H 
title="Moss @ Work Main" 
href="index.php">
<img src="images/moss_logo.png" alt="moss_logo" width="154" height="71" />

</A></DIV>
<DIV id=rightheader>
  <DIV id=headertext><A accessKey=Z href="empdir.php">Directory</A> 
  | <A accessKey=M href="https://webmail.mossinc.com">Webmail</A> <!-- | <a href="#" accesskey="L">Login to EIU</a> --></DIV></DIV><BR 
class=clear></DIV></DIV>
<DIV id=topnav>
<DIV class=wrapper>
<H2 class=invisible>Top Navigation</H2>
<UL>
  <LI><A accessKey=A href="index.php">Home</A> 
  <LI><A accessKey=D href="production.php">Production</A> 
  <LI><A accessKey=T href="http://mss.mossinc.com/sites/home/default.aspx">Sharepoint</A> 
  <LI><A accessKey=B href="pages.php">Pages</A> 
  <LI>
  <LI><a href="#">Cameras</a>
  <LI><A accessKey=G href="http://helpdesk.mossinc.com">HelpDesk</A> 
  </LI></UL></DIV></DIV><!-- Uncomment code below to put a message on all Moss pages with the CSS Templage, this is for a major emergency !--><!--<div class="emergencybg">
		<div class="largespacer"></div>
		<div class="wrapper" >

			<div class="emergency">
    		<h2>System Alert 4/26/2011 at 8:26 AM</h2>
    				Test <a href="#">more information</a>
            </div>
    			
            <div class="mediumspacer"></div>
		</div>
	</div> !-->





  
  <?php	            
$results = $mysqli->announce_list();
if(sizeof($results) > 0){ ?>
<div id="updates_feed_holder" class="errorbox">

			 <h2>Updates</h2>
			 	<ul>
<?php
      	for($x=0; $x < sizeof($results); $x++) {
			$date = date('l, F j - g:i:s a',(strtotime($results[$x]['update_timestamp'])));
			$content		= $results[$x]['update_text'];
?>
				<li>
					<span class="title"><?PHP echo $date;?></span><br />
					<span class="desc"><?php echo $content;?></span>
				</li>
	<?php } ?>

	</ul></div> <?php } ?>
	
		<div class="clear"></div>	   
   
 <div id="mainContent" class="frontpage"> 
 <div id="front_col1"> 
 <div id="news_feed_holder" class="feed">
  <h2>News</h2>
  <ul>	
  <?php
				$results = $mysqli->news_list_frontend($_SESSION[$prefix.'_groups']);
	      			for($x=0; $x < sizeof($results); $x++) {
	      			$date = date('m/d/Y',(strtotime($results[$x]['content_date'])));
	      			?>	
				

				<li><a href="article.php?id=<?php echo $results[$x]['content_id'];?>">
					<?php if($results[$x]['content_thumb'] != ''){ ?><img src='<?php echo $results[$x]['content_thumb'];?>' alt='<?php echo $results[$x]['content_title'];?>' border='0' align='left'  />	<?php } ?>				
					<span class="title"><?php echo $results[$x]['content_title'];?></span><br />
					<span class="desc"><?php echo $date;?></span></a>
					
					<br class="clear">
				
				</li>
			 <?php
				if($x > 5){break;}
				 } ?>
         
       
         
         
			</ul>
<p><a href="news.php">See All News</a></p>
 
   </div>	
</div> <!-- END front_col1 -->   
<div id="front_col2">
		

				
         <div id = "docs_feed_holder" class="feed">
       			<!--Documents & Members Area Output-->
              <h2><a href="docs.php" title="See All Documents">Documents/Links</a></h2>
				<ul>
				
				
				<?php
				$results = $mysqli->doc_list_frontend($_SESSION[$prefix.'_groups']);
	      			for($x=0; $x < sizeof($results); $x++) {

						$date = date('m/d/Y',(strtotime($results[$x]['content_date'])));
				?>

			<li>
				<span class="title left"><a href="<?php echo $results[$x]['content_loc'];?>"><?php echo $results[$x]['content_title'];?></a></span>
				<div class="info">
					<span class="desc"><?php echo $date;?></span><br />
				</div>
				<br class="clear">
			</li>
				
					<?php
					if($x > 5){break;}	
					}
					?>
			
				</ul>
				<p><a href="docs.php">See All Docs</a></p>
				</div> <!-- END front_col2_docs -->		
		</div><!-- END front_col2 -->
			 
</div> <!-- end maincontent -->		
		  
		<div class="clear"></div>	   
   
   
   
   
   
   				  
   
</DIV>
<DIV class=smallspacer></DIV>
<DIV class=contentwrapper>
<DIV class=midnavtop></DIV>
<H2><IMG class=linkfor alt="Links For" 
src="eiu_files/linksfor.jpg"><SPAN 
class=invisible>Links For</SPAN></H2>
<DIV class="col colw1">
<H2><a href="docs.php">Useful Documents</a></H2>
<UL>
  <LI>  
</UL></DIV>
<DIV class="col colw2">
<H2><A accessKey=S href="production.php">Production</A></H2>
<UL>
  <LI><A href="http://eg-fmweb.mossinc.com:8080/fmi/iwp/cgi?-db=ProductionSchedule&-loadframes">Web Production Schedule</A> 
  <LI><A accessKey=W href="http://mss.mossinc.com/sites/home/depts/mis/default.aspx">Moss Capacity Tracker</A> 
  <LI>  
</UL></DIV>
<DIV class="col colw4">
  <H2><a href="sites.php">Useful Sites</a></H2>
<UL>
  <LI><A href="https://www.jhancockpensions.com/do/home_page/homeRedirectionAction">401K</A> 
  <LI>  
</UL></DIV>
<DIV class="col colw5">
<H2><a href="websites.php">Websites</a></H2>
<UL>
  <LI><A href="http://www.mossinc.com">Moss Inc.</A> 
  <LI><A href="http://www.pinkincdesign.com">Pink Inc.</A> 
  <LI><A href="http://www.flycolors.com">Flying Colors</A> 
  <LI><A href="http://www.powerfullycreative.com">Powerfullycreative</A> 
  <LI><A href="http://www.pinkincnews.com">Pink Blog</A>  
  <LI><a href="http://johndlindsey.blogspot.com/">John Lindsey Blog</a>
  
</UL>
</DIV><BR 
class=clear>
<DIV class=midnavbottom></DIV></DIV><!-- Closes contentwrapper -->
<DIV class=mediumspacer></DIV></DIV>
<DIV id=bottomnav>
<DIV class=wrapper style="padding-left: 100px;">
 
 <table>
 <tr align="center">
<td>
<!-- Yahoo! Weather Badge --><iframe allowtransparency="true" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://weather.yahoo.com/badge/?id=2379574&u=f&t=trans&l=horizontal" height="155px" width="278px"></iframe><noscript><a href="http://weather.yahoo.com/united-states/illinois/chicago-2379574/">Chicago Weather</a> from <a href="http://weather.yahoo.com">Yahoo! Weather</a></noscript><!-- Yahoo! Weather Badge -->
 </td>
 <td>
 <!-- Yahoo! Weather Badge --><iframe allowtransparency="true" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://weather.yahoo.com/badge/?id=2487610&u=f&t=trans&l=horizontal" height="155px" width="278px"></iframe><noscript><a href="http://weather.yahoo.com/united-states/utah/salt-lake-city-2487610/">Salt Lake City Weather</a> from <a href="http://weather.yahoo.com">Yahoo! Weather</a></noscript><!-- Yahoo! Weather Badge -->
 </td>
  <td>
  <!-- Yahoo! Weather Badge --><iframe allowtransparency="true" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://weather.yahoo.com/badge/?id=2361609&u=f&t=trans&l=horizontal" height="155px" width="278px"></iframe><noscript><a href="http://weather.yahoo.com/united-states/maine/belfast-2361609/">Belfast Weather</a> from <a href="http://weather.yahoo.com">Yahoo! Weather</a></noscript><!-- Yahoo! Weather Badge -->
</td>
 </tr>
 <tr>

<td>
 <!-- Yahoo! Weather Badge --><iframe allowtransparency="true" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://weather.yahoo.com/badge/?id=2436704&u=f&t=trans&l=horizontal" height="155px" width="278px"></iframe><noscript><a href="http://weather.yahoo.com/united-states/nevada/las-vegas-2436704/">Las Vegas Weather</a> from <a href="http://weather.yahoo.com">Yahoo! Weather</a></noscript><!-- Yahoo! Weather Badge -->
 </td>
<td>
 <!-- Yahoo! Weather Badge --><iframe allowtransparency="true" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://weather.yahoo.com/badge/?id=2459115&u=f&t=trans&l=horizontal" height="155px" width="278px"></iframe><noscript><a href="http://weather.yahoo.com/united-states/new-york/new-york-2459115/">New York Weather</a> from <a href="http://weather.yahoo.com">Yahoo! Weather</a></noscript><!-- Yahoo! Weather Badge -->
 </td>
<td>
<!-- Yahoo! Weather Badge --><iframe allowtransparency="true" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://weather.yahoo.com/badge/?id=2362930&u=f&t=trans&l=horizontal" height="155px" width="278px"></iframe><noscript><a href="http://weather.yahoo.com/united-states/california/berkeley-2362930/">Berkeley Weather</a> from <a href="http://weather.yahoo.com">Yahoo! Weather</a></noscript><!-- Yahoo! Weather Badge -->
 </td>

 </tr>
 </table> 
 
 
 
</DIV></DIV>

<DIV id=footer>
<DIV style="PADDING-TOP: 20px" class=wrapper>
<DIV class=lefty><A href="index.php">Moss Inc</A> | 
Elk Grove Village, IL 60007 | 800-341-1557<BR><BR>

<BR></DIV></DIV></DIV></BODY></HTML>
